filechooser: use the sidebar style class for the file chooser sidebar
authorWilliam Jon McCann <jmccann@redhat.com>
Fri, 28 Jan 2011 03:00:20 +0000 (22:00 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Thu, 17 Mar 2011 21:12:55 +0000 (17:12 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=642712

gtk/gtkfilechooserdefault.c

index d19e7a4c0459a4b67ef9949267d11bb231a63ef5..b342f74add0b44b68074a6fd5cb860cbf0b53885 100644 (file)
@@ -3603,6 +3603,7 @@ shortcuts_list_create (GtkFileChooserDefault *impl)
   GtkTreeSelection *selection;
   GtkTreeViewColumn *column;
   GtkCellRenderer *renderer;
+  GtkStyleContext *style;
 
   /* Target types for dragging a row to/from the shortcuts list */
   const GtkTargetEntry tree_model_row_targets[] = {
@@ -3619,8 +3620,9 @@ shortcuts_list_create (GtkFileChooserDefault *impl)
   gtk_widget_show (swin);
 
   /* Tree */
-
   impl->browse_shortcuts_tree_view = gtk_tree_view_new ();
+  gtk_style_context_add_class (gtk_widget_get_style_context (impl->browse_shortcuts_tree_view),
+                               GTK_STYLE_CLASS_SIDEBAR);
   gtk_tree_view_set_enable_search (GTK_TREE_VIEW (impl->browse_shortcuts_tree_view), FALSE);
 #ifdef PROFILE_FILE_CHOOSER
   g_object_set_data (G_OBJECT (impl->browse_shortcuts_tree_view), "fmq-name", "shortcuts");